card_infors = [{"name": "ywc", "age": 18}, {"name": "aaa", "age": 19}, {"name": "bbb", "age": 20}]

find_name = input("please input name:")

for temp in card_infors:
    if temp["name"] == find_name:
        print("找到了")
        break
else:
    # 只要for循环的过程中没有执行到break，那么就会执行else里面的代码
    print("没有找到")
